package com.ruge.seckill.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * @author ruge.wu
 * @since 2022/1/26 15:57
 */
@Getter
@Setter
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "优惠券秒杀")
public class SaveSeckillCouponRequest {
    @NotNull(message = "优惠券id 必填")
    @ApiModelProperty("优惠券id")
    private String couponId;
    @NotNull(message = "秒杀数量 必填")
    @ApiModelProperty("秒杀数量")
    private Integer amount;
    @NotNull(message = "秒杀开始时间 必填")
    @ApiModelProperty("秒杀开始时间")
    private Long startTime;
    @NotNull(message = "秒杀结束时间 必填")
    @ApiModelProperty("秒杀结束时间")
    private Long endTime;
}
